package com.rephilo.consumer;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class UserClickConsumer {

    @KafkaListener(topics = "tp_individual")
    public void onMessage(ConsumerRecord<String, String> message) {
        System.out.println("user-click:key——" + message.key() + ", value——" + message.value());
    }
}
